package org.jeecg.modules.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.storage.entity.BussWarehouseInventory;
import org.jeecg.modules.storage.entity.BussWarehouseInventoryDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 盘点单
 * @Author: jeecg-boot
 * @Date:   2024-08-09
 * @Version: V1.0
 */
public interface IBussWarehouseInventoryService extends IService<BussWarehouseInventory> {

	/**
	 * 添加一对多
	 *
	 * @param bussWarehouseInventory
	 * @param bussWarehouseInventoryDetailList
	 */
	public void saveMain(BussWarehouseInventory bussWarehouseInventory,List<BussWarehouseInventoryDetail> bussWarehouseInventoryDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussWarehouseInventory
   * @param bussWarehouseInventoryDetailList
	 */
	public void updateMain(BussWarehouseInventory bussWarehouseInventory,List<BussWarehouseInventoryDetail> bussWarehouseInventoryDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
